# 只有上传按钮是 input 标签的才可以上传成功
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
d = webdriver.Chrome()
d.maximize_window()
d.get('https://www.baidu.com')

uplod = d.find_element(By.CSS_SELECTOR,'[class="soutu-btn"]')
uplod.click()
time.sleep(3)
file = d.find_element(By.CSS_SELECTOR,'[class="upload-pic"]')
file.send_keys(r'C:\Users\Public\Pictures\Sample Pictures\Hydrangeas.jpg')

time.sleep(6)
